projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d6d6dc
)
Pick the first rgba visual, not the last
author
Alexander Larsson
<alexl@redhat.com>
Tue, 28 Oct 2014 17:27:41 +0000
(18:27 +0100)
committer
Alexander Larsson
<alexl@redhat.com>
Tue, 28 Oct 2014 17:30:09 +0000
(18:30 +0100)
The visuals are typically sorted by some sort of "most useful first"
order. And picking the last one is likely to give us the weirdest
matching glx visual.
gdk/x11/gdkvisual-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkvisual-x11.c
b/gdk/x11/gdkvisual-x11.c
index a88882fe7314330b24c73ebede1ec4f54575eb23..429b7a0a7e73a677eafc492285c5e3da825bebb0 100644
(file)
--- a/
gdk/x11/gdkvisual-x11.c
+++ b/
gdk/x11/gdkvisual-x11.c
@@
-276,7
+276,8
@@
_gdk_x11_screen_init_visuals (GdkScreen *screen)
* Additional formats (like ABGR) could be added later if they
* turn up.
*/
- if (visuals[i]->depth == 32 &&
+ if (x11_screen->rgba_visual == NULL &&
+ visuals[i]->depth == 32 &&
(visuals[i]->red_mask == 0xff0000 &&
visuals[i]->green_mask == 0x00ff00 &&
visuals[i]->blue_mask == 0x0000ff))